package com.jo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @author Jo
 * @date 2017/12/6
 */
@RestController
public class TestController {

    @RequestMapping("/test")
    public String testSession(HttpSession httpSession){
        return httpSession.getId();
    }
}
